<template>
  <h1>粉丝数量：{{ formatFans }}</h1>
</template>
<script>
import { computed, reactive } from 'vue'
export default {
 name: 'App',
  setup() {
    const state = reactive({
      fans: 189976,
      formatFans: computed(() => {
        return (state.fans / 10000).toFixed(2) + '万'
      })
    })
    return state
  }
}
</script>